projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1758f88
)
Fix menu item alignment with submenus
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 29 Dec 2020 17:10:35 +0000
(12:10 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 29 Dec 2020 17:10:35 +0000
(12:10 -0500)
We were not aligning model button labels with nesting
submenus with indicators in their containing menu.
This was visible in the application demo of gtk4-demo.
gtk/gtkmenusectionbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmenusectionbox.c
b/gtk/gtkmenusectionbox.c
index 332252bb51e930830f2fe451010dc421de792c21..6210119c352a7e876837cb2fb3540ee3e7adca5c 100644
(file)
--- a/
gtk/gtkmenusectionbox.c
+++ b/
gtk/gtkmenusectionbox.c
@@
-319,6
+319,7
@@
gtk_menu_section_box_insert_func (GtkMenuTrackerItem *item,
widget = g_object_new (GTK_TYPE_MODEL_BUTTON,
"popover", submenu,
+ "indicator-size-group", box->indicators,
NULL);
g_object_bind_property (item, "label", widget, "text", G_BINDING_SYNC_CREATE);
g_object_bind_property (item, "icon", widget, "icon", G_BINDING_SYNC_CREATE);